

<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/inc/sessionCheck.jsp" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%@ taglib uri="/WEB-INF/config/tld/fmt.tld" prefix="fmt" %>
<%@ taglib uri="http://ssh.org/selects" prefix="ssh"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
String applicationPath = basePath + "/" + "application";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="<%=basePath%>/css/displaytable.css" />
<link href="<%=applicationPath%>/css/zfcl.css" rel="stylesheet" type="text/css" />
<link href="<%=applicationPath%>/css/main_div.css" rel="stylesheet" type="text/css" />
 <link href="<%=path%>/css/jinmu_style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="<%=path%>/js/util.js"></script>
<script language="javascript" src="<%=path%>/js/SyncCommon.js"></script>
</head>
<body>
<html:form styleId="systemConfigForm" action="addSystemConfig.do?method=addSystemConfig" onsubmit="return save();">
			<table cellspacing="0" cellpadding="0" width="98%" align="center"  border="0" class="margtb5">
		    <tr>
		      <td align="left" class="padl5 lan12"><img src="<%=path%>/images/img-11.gif" width="12" height="12">&nbsp;系统管理 &gt; 系统设置</td>
		    </tr>
		  </table>
                         <% int count =0; %>
                         <logic:iterate id="voList" name="systemConfigMap">   
                           <div class="navigation"> <ssh:select propertyName="configType" pid="system_config_type" type="3" defaultName="${voList.key}"/></div>
                          
                           <table height="30" cellspacing="0" cellpadding="0" width="98%" align="center" border="0" class="margb5">
							 <tr>
						      <td class="borderHelp" valign="top">
								<table width="100%" border="0" cellpadding="0" cellspacing="0">
								     <logic:iterate id="vo" name="voList" property="value" indexId="index1">   
								      
					                   <TR>   
					                    <TD><input type="hidden" name='form<%=count%>*id' value='<bean:write name="vo" property="id"/>'>
					                        <input type="hidden" name='form<%=count%>*configType' value='<bean:write name="vo" property="configType"/>'>
					                        <input type="hidden" name='form<%=count%>*configName' value='<bean:write name="vo" property="configName"/>'>
					                        <input type="hidden" name='form<%=count%>*cofigCode' value='<bean:write name="vo" property="cofigCode"/>'>
					                        <input type="hidden" name='form<%=count%>*dataType' value='<bean:write name="vo" property="dataType"/>'>
					                        <input type="hidden" name='form<%=count%>*validate' value='<bean:write name="vo" property="validate"/>'>
					                        
					                    </TD>    
					                    <TD width="30%"><bean:write name="vo" property="configName"/></TD>
					                     <c:if test="${vo.cofigCode=='4100101'}">
					                         <TD><input  flag="true" min="0" max="23" valid="required|isInt|limit" errMsg="请输入<bean:write name="vo" property="configName"/>！|请输入正确的<bean:write name="vo" property="configName"/>！|请输入0至23之间的时间！" name='form<%=count%>*configValue' value='<bean:write name="vo" property="configValue"/>'></TD>
					                     </c:if>
					                      <c:if test="${vo.cofigCode!='4100101'}">
					                         <TD><input  flag="true"  valid="required|isInt" errMsg="请输入<bean:write name="vo" property="configName"/>！|请输入正确的<bean:write name="vo" property="configName"/>！" name='form<%=count%>*configValue' value='<bean:write name="vo" property="configValue"/>'></TD>
					                      </c:if>   
					                  </TR>   
					                   <%count ++; %>
					               </logic:iterate>   
						          </tbody>
						        </table>
						        </td>
						      </tr>
						</table>
		              
		          </logic:iterate>   


			

               
　         </table>
		<p><p><p>
	

  
 <div class="bu01 d02">
          <input class="button_6noWid" id="but_save" type="submit" value="<bean:message key='com.syc.common.systemmanager.save' />" name="but_save" />
		  &nbsp;&nbsp;&nbsp;
		  <input class="button_6noWid" id="but_return" type="button" value="<bean:message key='com.syc.common.systemmanager.return' />" name="but_return"" onClick="javascript:history.go(-1);"/>
 </div>
</div>
</div>
</html:form>
</body>
</html>


<script>

function save(){

	if(validateForm(document.forms[0],'Y'))
	{
		return true;
	}else{
	    return false;
	}
    
}

</script>





